<?php

namespace Modules\Auth\Entities;



use Illuminate\Database\Eloquent\Factories\HasFactory;
use Laravel\Passport\HasApiTokens;
use Modules\Common\Entities\Authenticatable;
use Spatie\Permission\Traits\HasRoles;

class Admin extends Authenticatable
{
    use HasFactory;

    protected $fillable = [];
    use HasApiTokens;
    use HasRoles;
    use HasFactory;

    public function findForPassport($username) {
        return $this->where('username', $username)->first();
    }
    public function guardName(): string {
        return 'admin';
    }
}
